<?php

namespace Utils\Font\FontMetricServices;

use Utils\URL\Url;

/**
 * This class acts as factory for creating font metric services.
 */
class FontMetricServiceFactory
{
    /**
     * This method creates a FontMetricService.
     *
     * @param Url $url the URL of the underlying service endpoint
     * @return FontMetricWebServerService the created FontMetricService
     */
    public static function createFontMetricService(Url $url)
    {
        return new FontMetricWebServerService($url);
    }
}
